package com.lujianfei.mqtt.net.config

import com.lujianfei.mqtt.BuildConfig

/**
 * @Author: wn
 * @Date: 2024/4/15 15:34
 * @Description: retrofit 公共配置
 */

// 开发环境下的host配置         120.26.244.78:8008          http://pcapi-xiaotuxian-front-devtest.itheima.net
const val HOST_DEV = "http://120.26.244.78:8008 "
const val HOST_PRODUCT = "http://120.26.244.78:8008 "

/**
 * 获取当前配置的 baseHost
 * MMKV 中 获取 没有 就取 默认 开发 BASE_URL
 */
fun getBaseHost(): String {
  return if (BuildConfig.DEBUG) {
     HOST_DEV
  } else {
    HOST_PRODUCT
  }
}

// 存储 用户id
 const val USER_ACCOUNT = "user_account"
